<template>
  <div id="backend">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">
          <div class="aside-box">
            <el-menu
              default-active="2"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
              router
            >
              <el-menu-item index="/roomList">
                <i class="el-icon-menu"></i>
                <span slot="title" >房间管理</span>
              </el-menu-item>
              <el-menu-item index="/yongHuGuanLi">
                <i class="el-icon-document"></i>
                <span slot="title">用户管理</span>
              </el-menu-item>
              <el-menu-item index="/orderManage">
                <i class="el-icon-setting"></i>
                <span slot="title">订单管理</span>
              </el-menu-item>
            </el-menu>
          </div>
        </el-aside>
        <el-main><router-view/></el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
export default {
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>
<style lang="scss">
#backend {
  width: 100vw;
  height: 100vh;
  .el-header {
    background-color: #b3c0d1;
    color: #333;
    text-align: center;
    height: 60px;
  }

  .el-aside {
    /* background-color: #d3dce6; */
    color: #333;
    text-align: center;
  }

  .el-main {
    background-color: #e9eef3;
    color: #333;
    text-align: center;
    line-height: 160px;
    height: calc(100vh - 60px);
  }
  .aside-box{
      .el-menu{
          background-color:rgb(14,91,73);
      }
  }
}
</style>